const nodata = require('../tw-lib-base/no-data/props')
const commonProps = require('../tw-lib-base/chart/common-props')
const axisProps = require('../tw-lib-base/chart/axis-props')
const datazoomProps = require('../tw-lib-base/chart/datazoom-props')
const tooltipProps = require('../tw-lib-base/chart/tooltip-props')

module.exports = {
  ...commonProps,

  ...axisProps,
  ...datazoomProps,
  ...tooltipProps,

  data: {
    type: Array,
    default () {
      return [
        ['经费', '幼儿园', '小学', '初中', '高中', '中职'],
        ['长沙市本级', 43.3, 85.8, 93.7, 85.8, 93.7],
        ['芙蓉区', 83.1, 73.4, 55.1, 85.8, 93.7],
        ['天心区', 86.4, 65.2, 82.5, 85.8, 93.7],
        ['岳麓区', 86.4, 65.2, 82.5, 85.8, 93.7],
        ['开福区', 86.4, 65.2, 82.5, 85.8, 93.7],
        ['雨花区', 86.4, 65.2, 82.5, 85.8, 93.7],
        ['望城区', 86.4, 65.2, 82.5, 85.8, 93.7],
        ['长沙县', 86.4, 65.2, 82.5, 85.8, 93.7],
        ['宁乡市', 86.4, 65.2, 82.5, 85.8, 93.7],
        ['浏阳市', 86.4, 65.2, 82.5, 85.8, 93.7],
        ['高新区', 86.4, 65.2, 82.5, 85.8, 93.7]
      ]
    },
    name: '图表数据集',
    filedType: 'api'
  },
  height: {
    type: String,
    default: '400px',
    name: '图表容器高度',
    filedType: 'string'
  },
  boundaryGap: {
    type: Boolean,
    default: false,
    name: '坐标轴留白',
    filedType: 'switch'
  },

  isSmooth: {
    type: Boolean,
    default: false,
    name: '是否平滑显示',
    filedType: 'switch'
  },

  areaStyle: {
    type: Boolean,
    default: false,
    name: '面积颜色渐变',
    filedType: 'switch'
  },

  nameStyleColor: {
    type: String,
    default: 'green',
    name: '坐标轴标题颜色',
    filedType: 'color'
  },

  nameStyleSize: {
    type: String,
    default: '14',
    name: '坐标轴标题字体',
    filedType: 'string'
  },

  axisLabelColor: {
    type: String,
    default: '#666',
    name: '轴线刻度颜色',
    filedType: 'color'
  },
  axisLabelFontSize: {
    type: String,
    default: '12',
    name: '轴线刻度字体',
    filedType: 'string'
  },

  ...nodata

}
